package com.wn.pettyloan.mapper;

import com.wn.pettyloan.dto.UserDto;
import com.wn.pettyloan.entity.User;
import com.wn.pettyloan.vo.UserVo;

/**
* @author mi-xu
* @description 针对表【user】的数据库操作Mapper
* @createDate 2022-12-06 17:35:08
* @Entity com.wn.pettyloan.entity.User
*/
public interface UserMapper {
    User selectUserByUserName(String tel);

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User login(UserDto userDto);

    UserVo selectSelf(UserDto userDto);

    int updateUserNameOrImg(UserDto userDto);

}
